<template>
    <el-container>
        <el-header>Header</el-header>
        <el-container>
            <el-aside width="200px">
                <el-col>
                    <el-menu default-active="/home" router="true" class="el-menu-vertical-demo" @open="handleOpen"
                        @close="handleClose">

                        <!-- 用户 -->
                        <el-menu-item index="/home/user">
                            <span>用户资料</span>
                        </el-menu-item>

                        <el-sub-menu index="/home/script">
                            <template #title>
                                <span>剧本管理</span>
                            </template>
                            <el-menu-item index="/home/script">购入剧本</el-menu-item>
                            <el-menu-item index="/home/invenyory">库存剧本</el-menu-item>
                            <el-menu-item index="/home/delete">已删除剧本</el-menu-item>
                        </el-sub-menu>
                        <el-sub-menu index="/home/allorder">
                            <template #title>
                                <span>订单管理</span>
                            </template>
                            <el-menu-item index="/home/allorder">所有订单</el-menu-item>
                            <el-menu-item index="/home/backlog">未完成的订单</el-menu-item>
                            <el-menu-item index="/home/overorder">完成的订单</el-menu-item>
                        </el-sub-menu>
                        <el-menu-item index="/home/allorder">

                        </el-menu-item>
                        <el-menu-item index="/">
                            <span>Navigator Four</span>
                        </el-menu-item>
                    </el-menu>
                </el-col>
            </el-aside>
            <el-main>
                <router-view></router-view>
            </el-main>
        </el-container>
    </el-container>
</template>

<script>
export default {
    name: '',
    components: {},
    data() {
        return {

        };
    },
    computed: {

    },
    methods: {

    },
    created() {

    },

}
</script>
<style scoped lang='less'>
.el-header {
    background-color: pink;
    text-align: center;
    line-height: 60px;
}

.el-container {
    height: 100%;
}

.el-aside {
    background-color: red;
    height: 100%;
}

.el-main {
    background-color: orange;
    height: 100%;
}

.el-col {
    width: 100%;
}
</style>